package com.zysstudy.service.Impl;

import com.zysstudy.service.IUserService;
import com.zysstudy.web.domain.entity.SecurityUser;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService, UserDetailsService {
    @Override
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
//        User user =getUserByUsername(username);
//          if(user == null){
//              throw new RuntimeException("xxx");
//          }
//        return new SecurityUser(user);
        return null;
    }
}
